// 市
export interface cityTopConfigType {
  getAreaSelectValue: (params: any) => void
  getLoginTimeSelectValue: (params: string) => void
  getInputNamePhoneValue: (params: any) => void
  changePagingUploadTable: (params1: number, params2: number) => void
  getWard: (params: any) => void
  inputEnter: () => void
  addAdmin: () => void
  cityhandleCancel: () => void
  paging: any
  cityCascader: any
}
export interface cityMocalConfigType {
  cityisModalOpen: boolean
  cityModalType: any
  cityForm: any
  cityModalRegion: any
  cityOnFinish: (params: any) => void
}
export interface cityBottomConfigType {
  cityLook: (params: any) => void
  cityEdit: (params: any) => void
  cityDeleteData: (params: any) => void
}

// 医院
export interface hospitalTopConfigType {
  hospitalExport: () => void
}
export interface hospitalBottomConfigType {
  hospitalExamine: (params: any) => void
}

// 病区
export interface inpatientWardTopConfigType {
  inpatientWardExport: () => void
}

export interface inpatientWardBottomConfigType {
  inpatientWardExamine: (params: any) => void
}

export interface topConfigDataType {
  topRegionSelectData: any
  inpatientWard: any
  topSelectorData: any
  tabsKey: string
  filterArr: any
  rowSelection: any
  changeTabs: (params: string) => void
}

export interface tableInterface {
  id: number
  chineseName: string | null
  englishName: string | null
  website: string | null
  username: string
  platformId: number
  password: string | null
  telphone: string
  phone: string
  email: string
  accountType: number
  provinceId: number
  cityId: number
  areaId: number
  inpatientWardId: number | null
  wardName: string | null
  hospitalCode: number
  unitName: string
  lastLoginDate: string
  createDate: string
  updateDate: string
  createUser: string | null
  updateUser: string | null
  status: boolean
  isDeleted: boolean
}

export interface tableConfigType {
  tableData: tableInterface[]
}
export interface hospitalAdminUserContextType {
  cityTopConfig: cityTopConfigType
  cityMocalConfig: cityMocalConfigType
  cityBottomConfig: cityBottomConfigType

  hospitalTopConfig: hospitalTopConfigType
  hospitalBottomConfig: hospitalBottomConfigType

  inpatientWardTopConfig: inpatientWardTopConfigType
  inpatientWardBottomConfig: inpatientWardBottomConfigType

  topConfigData: topConfigDataType
  tableConfig: tableConfigType
}

// 市级顶部获取的值类型
export interface cityTopValueType {
  region: [] | ''
  loginTime: string
  inputValue: string
  state?: string
}

export enum isCityModal {
  ADD = 1, // 新增
  EDIT = 2, // 编辑
  LOOK = 3, // 查看
}

export interface pagingType {
  pageSize: number
  pageIndex: number
  totalCount?: number
}
